using System;
using System.Collections;
using System.Collections.Generic;

namespace MyWebPagesStarterKit.Sitemaps.Utilities
{
    internal static class CollectionUtils
    {
        public static bool IsNullOrEmpty<T>(ICollection<T> collection)
        {
            if (collection != null)
            {
                return (collection.Count == 0);
            }
            return true;
        }

        public static bool IsNullOrEmpty(ICollection collection)
        {
            if (collection != null)
            {
                return (collection.Count == 0);
            }
            return true;
        }
    }
}
